package com.xinxin.siteset.utils;

import com.xinxin.siteset.vo.Response;

/**
 * @author 史鑫鑫
 * @date Created in 2019/6/7 1:51
 */
public class ResponseUtil {
    public static Response<Object> success(Object data) {
        return new Response<>(200, "success", data);
    }

    public static Response<Object> success() {
        return success(null);
    }

    public static Response error(Integer code, String msg) {
        return new Response(code, msg);
    }
}
